<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <!-- import CSS -->
  <link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.15.9/theme-chalk/index.css">
  <style>
    body{
      background-image: url("imgs/background02.png");
      margin: 0;  /*去掉自带的外边距*/
      /*cover封面  把背景图片作为封面*/
      background-size: cover;
      /*禁止重复*/
      background-repeat: no-repeat;
      text-align: center;
    }
    h1{
      font-size: 72px;
      color: #e8e8e8;
      margin-bottom: 0;
    }
    /*img{
      width: 100px;
    }*/
    h2{
      font-size: 32px;color:#e8e8e8;
      margin-bottom: 0;
    }
  </style>
</head>
<body>
<div id="app">
    <h1>欢迎来到利特尔商城</h1>
    <img src="imgs/1-230113101P9D8.png" width="506" height="65">
    <h2>LittellMall</h2>
    <el-card style="width: 600px;height: 300px;margin: 0 auto;
    background-color: rgba(255,255,255,0.3)">
      <!--label-width设置文本所占的宽度如果不设置,文本单独显示一行-->
        <el-form label-width="60px" style="width: 400px;margin: 50px auto">
          <el-form-item label="用户名">
            <el-input type="text" v-model="user.username" placeholder="请输入用户名"></el-input>
          </el-form-item>
          <el-form-item label="密码">
            <el-input type="password" v-model="user.password" placeholder="请输入密码"></el-input>
          </el-form-item>
            <el-form-item>
                <!--让某一个元素位置进行微调时 使用相对定位-->
                <el-button style="position: relative;right: 30px"
                        type="primary">登录</el-button>
            </el-form-item>
        </el-form>
    </el-card>
</div>
</body>
<!-- import Vue before Element -->
<script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
<!-- import JavaScript -->
<script src="https://cdn.staticfile.org/element-ui/2.15.9/index.min.js"></script>
<script>
 let v = new Vue({
    el: '#app',
    data: function() {
      return {
          user:{username:"",password:""}
      }
    },
   methods:{

   }
  })
</script>
</html>